package com.briup.estore.common.pojo;

/**
 * @Author briup-adam
 * @Date 2023/7/31 上午11:14
 * @Description 订单项实体类型
 **/

public class OrderItem {
    /**
     * 订单项编号
     */
    private int id;

    /**
     * 所属订单的编号
     */
    private String orderId;

    /**
     * 包含书籍的编号
     */
    private int bookId;

    /**
     * 选购数量
     */
    private int num;

    @Override
    public String toString() {
        return "OrderItem{" +
                "id=" + id +
                ", orderId='" + orderId + '\'' +
                ", bookId=" + bookId +
                ", num=" + num +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}
